package br.net.woodstock.tickettoride.spring.web.manager;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import br.net.woodstock.rockframework.web.faces.spring.ViewScope;
import br.net.woodstock.tickettoride.api.access.UserService;
import br.net.woodstock.tickettoride.api.manager.ApplicationService;
import br.net.woodstock.tickettoride.web.jsf.manager.common.AbstractApplicationBean;

@Controller("applicationBean")
@Scope(ViewScope.VIEW_SCOPE)
public class ApplicationBean extends AbstractApplicationBean {

	private static final long	serialVersionUID	= 2488493041210299233L;

	@Autowired(required = true)
	private ApplicationService	applicationService;

	@Autowired(required = true)
	private UserService			userService;

	@Override
	public ApplicationService getApplicationService() {
		return this.applicationService;
	}

	@Override
	public UserService getUserService() {
		return this.userService;
	}

}
